package tool

import (
	"crypto/md5"
	"fmt"
	"io"
	"strconv"
	"strings"
	"time"
)

var (
	KEY = "lambdang@foxmail.com~!@@#$$%^^&&*"
)

func GetToken() string{
	crutime := time.Now().Unix()
	md:= md5.New()
	num:=strconv.FormatInt(crutime,10)
	io.WriteString(md,strings.Join([]string{num,KEY},""))
	token := fmt.Sprintf("%x",md.Sum(nil))
	return token
}


